import request from '@/router/axios';

// ### 创建工单
export const saveAsk = (data) => {
  return request({
    url: '/api/xmbz-work/workAskTransport/saveAsk',
    method: 'post',
    data
  })
}

// ### 修改工单
export const updateAsk = (data) => {
  return request({
    url: '/api/xmbz-work/workAskTransport/updateAsk',
    method: 'post',
    data
  })
}

// ### 查询工单
export const workAskTransportList = (query) => {
  return request({
    url: '/api/xmbz-work/workAskTransport/list',
    method: 'get',
    params: query
  })
}

// ### 查询工单日志
export const workAskLogList = (query) => {
  return request({
    url: '/api/xmbz-work/workAskLog/list',
    method: 'get',
    params: query
  })
}

// ### 催办
export const customerReminder = (data) => {
  return request({
    url: '/api/xmbz-work/workAskTransport/customerReminder',
    method: 'post',
    data
  })
}
